/**
 * 系统公告
 * @author sherwyn.Tang
 * @create 2015/03/07
 */
;(function (global){
	if(document.body)document.body.scrollTop = 0;
	if(document.documentElement)document.documentElement.scrollTop = 0;
	
	var CGI = {
			NOTICE_MAIN: window.frontPath + 'notice/pagingPageContent?catalogId=4'//查询系统公告
	};
	
     window.P(
			1,
			'#notice-search-form' , 
			CGI.NOTICE_MAIN , 
			'#notice-z-template' , 
			'#notice-data' , 
			15
	 ); 

     $('#notice-data tr').livequery('mouseover' , function (){
    	 $(this).css({'cursor' : 'pointer'});
     }).livequery('click' , function (){
    	 location.href = location.href.replace(location.hash , '#/notice/detail/'+$(this).find('[data-flag="id"]').val());
     });
     
 

})(window);